import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export let useControl= defineStore('showControl', () => {

  let show_control=ref(false);

  let show_control_getter = computed(() => show_control.value);

  let paralleId=ref(0);

  let paralleId_getter=computed(()=>paralleId.value);

  function show_control_fn(status) {
    show_control.value = status   //必须使用.value
  };

  function paralleId_fn(data){
    paralleId.value=data;
  }

  return { show_control_getter, show_control_fn,paralleId_getter,paralleId_fn}
  
});
